{extend name="layout/layout" /}

{block name="pagecss"}
{/block}

{block name="content"}
<div class="row">
    <div class="col-xs-12">
        <div class="box box-success">
            <div class="box-header with-border">
                <div class="row">
                    <div class="col-md-5">
                        <form id="searchForm" class="relative row">
                            <div class="grid-btn" id="search">
                                <div class="col-md-5">
                                    <input type="text" class="form-control" name="title" placeholder="商品名称" maxlength="44">
                                </div>
                                <div class="col-md-2 cy-mar-ver-s text-right">
                                    <button class="btn btn-primary cy-pad-rgt-s" id="doQuery" type="button">搜索</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="box-body">
                <input type="hidden" name="storeId" value="{$storeId}">
                <input type="hidden" name="groupId" value="{$groupId}">
                <div id="table">
                    <table class="table table-striped table-bordered table-hover table-checkable order-column" id="table_record">
                        <thead>
                            <tr>
                                <th>拼团商品</th>
                                <th>拼团人数</th>
                                <th>开团时间</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 查看某个拼团详情 弹出层-->
<div class="modal fade" id="groupList" data-backdrop="static" data-keyboard="false" >
    <div class="modal-dialog" style="width:800px; height: 520px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">x</button>
                <h4 class="modal-title">拼团详情</h4>
            </div>
            <div class="modal-body">
                <div class="grid-btn" id="search2">
                    <div class="col-md-4">
                        <input type="text" class="form-control" name="order" placeholder="订单号" maxlength="32">
                        
                    </div>
                    <div class="col-md-4">
                        <input type="text" class="form-control" name="phone" placeholder="手机号" maxlength="32">
                    </div>
                </div>
                <table class="table" id="member_list_table">
                    <thead>
                        <tr>
                            <th>订单号</th>
                            <th>用户</th>
                            <th>手机号</th>
                            <th>数量</th>
                            <th>金额</th>
                            <th>参团时间</th>
                            <th>备注</th>
                        </tr>
                    </thead>
                    <tbody>
                    </tbody>
                </table>
            </div>
            <div class="modal-footer">
                <button type="button" id="" class="btn default btn-confrom-product" data-dismiss="modal">确定</button>
            </div>
        </div>
    </div>
</div>
{/block}

{block name="pagescript"}
<script>
    var record_url = "{:url('admin/group/recordListApi')}";   //查看拼团记录
    var member_url = "{:url('admin/group/groupMember')}";  //拼团详情
</script>
<script src="__STATIC__/admin/js/include.js" type="text/javascript"></script>
<script src="__STATIC__/admin/pages/js/group_record.js" type="text/javascript"></script>
{/block}